﻿using System;
using System.Collections.Generic;
using System.Text;
using Core;
using Generators;

namespace _0512085
{
    class Parser
    {
        /// <summary>
        /// Parse the input text
        /// </summary>
        /// <param name="inputStr"></param>
        /// <returns></returns>
        public static String Parse(String input)
        {
            ImplicitDefinition imDefination = new ImplicitDefinition(input);
            CodeGenerator generator = new CPlusPlusCodeGenerator(imDefination);

            return generator.Generate();
        }
    }
}
